// -*- coding: utf-8 -*- 
/**
 * Project: AlgorithmsLearn
 * Creator: yanking
 * Create time: 2022-02-25 12:33
 * IDE: IntelliJ IDEA
 * Introduction:
 */
package com.leetCode.ValidPath;

public class runValidPath {
    public static void main(String[] args) {
        // int[][] edges = {{0, 1}, {0, 2}, {3, 5}, {5, 4}, {4, 3}};
        int[][] edges = {{0, 7}, {0, 8}, {6, 1}, {2, 0}, {0, 4}, {5, 8}, {4, 7}, {1, 3}, {3, 5}, {6, 5}};
        // 7->0->8->5
        System.out.println(new validPath().validPath(10, edges, 7, 5));
    }
}
